package com.traffic.collect.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("collection")
public class TraCollection {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String ip;
    private LocalDateTime insertTime;
    private Double cpuValue;
    @JSONField(name = "memeryValue")
    private Double memoryValue;
    @JSONField(name = "diskValue")
    private Double hardValue;

    @TableField(exist = false)
    private String name;

}
